package com.tjy.service.impl;

import com.tjy.bean.MobilePhone;
import com.tjy.bean.ShoppingCart;
import com.tjy.dao.IPriceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IPriceServiceImpl implements com.tjy.service.IPriceService {
    @Autowired
    private IPriceDao priceDao;
    @Override
    public Double selectWeight(Integer p1) {
        return priceDao.selectWeight(p1);
    }


    @Override
    public Integer selectPrice(Integer phoneId) {
        return priceDao.selectPrice(phoneId);
    }

    @Override
    public Double selectWeights(Integer p3) {
        return priceDao.selectWeights(p3);
    }

    @Override
    public MobilePhone selectImg(Integer fromId) {
        return priceDao.selectImg(fromId);
    }

    @Override
    public List<ShoppingCart> selectShopping() {
        return priceDao.selectShopping();
    }

    @Override
    public Integer selectCount() {
        return priceDao.selectCount();
    }

    @Override
    public String selectBasicSituation(Integer p1) {
        return priceDao.selectBasicSituation(p1);
    }

    @Override
    public String selectWearDegree(Integer p3) {
        return priceDao.selectWearDegree(p3);
    }

    @Override
    public String selectFunctionSituation(Integer p2) {
        return priceDao.selectFunctionSituation(p2);
    }

}
